package com.park.service.impl.exam;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.exam.ExamPaperTypeModel;
import com.park.client.service.exam.ExamPaperTypeService;
import com.park.dao.exam.ExamPaperTypeMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("examPaperTypeService")
public class ExamPaperTypeServiceImpl  extends BaseServiceImpl<ExamPaperTypeModel> implements ExamPaperTypeService {
	
	@Autowired
	private ExamPaperTypeMapper examPaperTypeMapper;

	@Override
	public boolean insert(ExamPaperTypeModel record) {
		return examPaperTypeMapper.insert(record) == 1;
	}
	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return examPaperTypeMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(ExamPaperTypeModel record) {
		return examPaperTypeMapper.insertSelective(record)==1;
	}
	@Override
	public ExamPaperTypeModel selectByPrimaryKey(Long id) {
		return examPaperTypeMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(ExamPaperTypeModel record) {
		return examPaperTypeMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(ExamPaperTypeModel record) {
		return examPaperTypeMapper.updateByPrimaryKey(record) == 1;
	}
	
	@Override
	public List<ExamPaperTypeModel> selectPagination(ExamPaperTypeModel t) {
		return examPaperTypeMapper.selectPagination(t);
	}
	
	@Override
	public Integer selectTotal(ExamPaperTypeModel t) {
		return examPaperTypeMapper.selectTotal(t);
	}
	

}
